import Vue from 'vue'
import Router from 'vue-router'
import login from '@/page/login.vue'
import Home from '@/page/home.vue'
import Welcome from '@/page/Welcome.vue'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    component: login
  },
  {
    path: '/home',
    component: Home,
    redirect: '/Welcome',
    children: [{
      path: '/Welcome',
      component: Welcome
    }
    ]
  }
  ]
})
